選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

page.tsx 819B

12345678910111213141516171819202122232425262728
  1. import React from 'react'
  2. import { getLocaleOnServer } from '@/i18n/server'
  3. import { useTranslation } from '@/i18n/i18next-serverside-config'
  4. import Form from '@/app/components/datasets/settings/form'
  5. type Props = {
  6. params: { datasetId: string }
  7. }
  8. const Settings = async ({
  9. params: { datasetId },
  10. }: Props) => {
  11. const locale = getLocaleOnServer()
  12. // eslint-disable-next-line react-hooks/rules-of-hooks
  13. const { t } = await useTranslation(locale, 'dataset-settings')
  14. return (
  15. <div className='bg-white h-full overflow-y-auto'>
  16. <div className='px-6 py-3'>
  17. <div className='mb-1 text-lg font-semibold text-gray-900'>{t('title')}</div>
  18. <div className='text-sm text-gray-500'>{t('desc')}</div>
  19. </div>
  20. <Form datasetId={datasetId} />
  21. </div>
  22. )
  23. }
  24. export default Settings